<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>发送消息</title>
<link href="/widget/bootstrap/3.3.7/css/bootstrap.css" rel="stylesheet"  type="text/css"/>
 {cssjs}
<link href="/res/css/inside_page.css" rel="stylesheet"  type="text/css"/>
</head>

<body>
<div class="container-fluid larry-wrapper">
    <div class="row">
        <div class="col-xs-12 col-sm-12 col-md-12">
            <section class="panel panel-padding">
                <form id="form1" class="layui-form layui-form-pane" method="post" data-dotype="a" action="/html/news/srv/edit_sender.php">
                        <div class="layui-form-item">
                            <label class="layui-form-label">收信人</label>
                            <div class="layui-input-block">
                                <input type="text" placeholder="收信人" title="" id="acceptname" value="{acceptname}" name="acceptname" autocomplete="off" class="layui-input" style="width:80%;"><a class="layui-btn layui-btn-small modal-iframe" href="javascript:void(0);" onclick="showAccept()" style="float:right;margin-top:-34px;font-size:14px;" title="添加收信人">添加</a> 
                            </div>
                        </div>
						<div class="layui-form-item layui-form-text">
							<div class="layui-input-block">
							  <textarea name="content" id="content" placeholder="请输入内容" class="layui-textarea"></textarea>
							</div>
						</div>
						<input type="hidden" name="accept_id" id="accept_id">
						<input type="hidden" name="uid" id="uid" value="{uid}">
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="text" id="id" name="id" value="{id}" style="display:none;"/>
                                <button class="layui-btn" id="btn_save"/>立即提交</button>
                                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                            </div>
                        </div>
                    </form>
            </section>
        </div>
    </div>
</div>
    {jsmodel}
   <script type="text/javascript">
        layui.use('news_edit');
		var index = parent.layer.getFrameIndex(window.name);//获取当前弹出层的ID
		function showAccept(){
		var userid=$("#accept_id").val();
			//iframe层
			  parent.layer.open({
			  type: 2,
			  title: '收信人选择',
			  shadeClose: true,
			  shade: 0.8,
			  area: ['100%','100%'],
			  content: './?t=select_accept&fid='+index+'&userid='+userid //iframe的url
			}); 
		}
    </script>
</body>
</html>